-- GENERATED SPELL FOR [Scythetooth Raptor] --


function spell0_20634(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_20634', 650, 1)
end

function spell1_20634(pUnit, Event) --@Rush,n/a--
pUnit:FullCastSpellOnTarget(37359,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20634', 5328, 1)
end

function Sorts_20634(pUnit, Event)
local choix_sorts_20634 = math.random(0, 1)
if choix_sorts_20634 == 0 then
pUnit:RegisterEvent('spell0_20634', 1, 1)
end
if choix_sorts_20634 == 1 then
pUnit:RegisterEvent('spell1_20634', 1, 1)
end
end

function mob20634_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20634', math.random(1500, 3000), 1)
end

function mob20634_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20634_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20634_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20634, 1, 'mob20634_Action')
RegisterUnitEvent(20634, 2, 'mob20634_Leave')
RegisterUnitEvent(20634, 3, 'mob20634_Kill')
RegisterUnitEvent(20634, 4, 'mob20634_Die')
